package com.egaleye.core.context;


import java.util.Map;

public class HttpRequestContext {

	public static final ThreadLocal<Map<String,Object>> httpRequest = new ThreadLocal<Map<String,Object>>();
	
	public static void setRequestContext(Map<String,Object> map){
		httpRequest.set(map);
	}
	
	public static Map<String,Object> getRequestContext(){
		return httpRequest.get();
	}
	
	public static void clear(){
		httpRequest.remove();
	}
}
